@import './style.scss';

#systemSnapshot {
    width: 100%;
    min-width: 1000px;
    height: 100%;
    color: #1f232f; // 已确认文字颜色

    .confirmedColor {
        color: #298df8;
    }

    // 故障
    .spanTextColor_gz {
        color: #fc687a;
    }

    .icon_kuaizhaoleixing_guzhang {
        color: #ff6a78;
        background-image: -webkit-linear-gradient(bottom, rgba(255, 107, 120, 1), rgba(255, 104, 142, 1));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    // 警告
    .spanTextColor_jg {
        color: #f67f51;
    }

    .icon_kuaizhaoleixing_jinggao {
        color: #f67f51;
        background-image: -webkit-linear-gradient(bottom, rgba(246, 127, 81, 0.8), rgba(248, 162, 103, 1));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    // 信息
    .spanTextColor_xx {
        color: #35b5ee;
    }

    .icon_kuaizhaoleixing_xinxi {
        color: #35b5ee;
        background-image: -webkit-linear-gradient(bottom, rgba(52, 179, 239, 1), rgba(61, 205, 229, 1));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    // 设置
    .spanTextColor_sz {
        color: #eeb82d;
    }

    .icon_kuaizhaoleixing_shezhi {
        color: #eeb82d;
        background-image: -webkit-linear-gradient(bottom, rgba(241, 178, 85, 1), rgba(233, 185, 47, 1));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    // 资产
    .spanTextColor_zc {
        color: #8fb457;
    }

    .icon_kuaizhaoleixing_zichan {
        color: #8fb457;
        background-image: -webkit-linear-gradient(bottom, rgba(144, 179, 87, 1), rgba(137, 202, 93, 0.8));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    >.title {
        height: 64px;
        line-height: 64px;
        font-size: 24px;
        color: $textColor_1;
        padding-left: 8px;
    }

    .container {
        position: relative;
        width: 100%;
        height: calc(100% - 64px);

        >header {
            padding: 4px;
            display: flex;
            justify-content: space-between;
            width: 100%;
            height: 72px;
            border-radius: 3px;
            font-size: 0.875rem;
            line-height: 72px;
            border: 0.5px solid $n-borderColor;
            background-color: $n-backColor;
            overflow: hidden;

            >div {
                flex: 1;
                padding: 0 5px;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;
                line-height: 100%;
                color: $textColor_1;
                transition: all 0.15s;
                cursor: pointer;
                border-radius: 3px;
                border: 1px solid $n-backColor;

                &:nth-child(n + 2) {
                    margin-left: 4px;
                }

                &:hover {

                    .title,
                    .value,
                    .value span {
                        color: $btn-blue !important;
                    }
                }

                img {
                    width: 36px;
                    height: 36px;
                }

                .tab_btn_title {
                    padding-left: 1.5rem;
                    font-size: 0.875rem;

                    .title {
                        color: $textColor_3;
                    }

                    .value {
                        margin-top: 0.5rem;
                        font-size: 1.25rem;

                        span {
                            font-size: 0.875rem;
                            color: $textColor_3;
                        }
                    }
                }
            }

            .aside_top_nav_active {
                color: $textColor_1;
                background-color: $n-frondColor;
                border-color: $n-borderColor;

                &:hover {

                    .title,
                    .value,
                    .value span {
                        color: $textColor_1 !important;
                    }
                }
            }
        }
    }

    section {
        position: relative;
        padding: 0;
        font-size: 0.875rem;
        height: calc(100% - 122px);
        overflow: hidden;

        >header {
            position: absolute;
            padding-right: 5px;
            margin: 0;
            right: 0;
            width: 100%;
            height: 48px;
            line-height: 48px;
            z-index: 9;

            >span {
                display: block;
                float: left;
                height: 100%;
                font-size: 14px;
                text-align: center;
                color: $textColor_3;

                &:first-child {
                    width: 8%;
                }

                &:nth-child(2) {
                    width: 13%;
                    text-align: left;
                }

                &:nth-child(3) {
                    padding-left: 1rem;
                    width: calc(36% - 10px);
                    text-align: left;
                }

                &:nth-child(4),
                &:nth-child(5) {
                    width: 5%;
                }

                &:nth-child(6) {
                    padding-left: 1rem;
                    width: 25%;
                    text-align: left;
                }

                &:last-child {
                    width: 8%;
                }
            }
        }

        /deep/ .el-table {
            position: absolute;
            top: calc(50% - 20px);
            left: 0;
            width: calc(100% - 100px); // z-index: -1;
            background-color: $middleColor_1 !important;
        }

        >ul {
            margin-top: 48px;
            width: 100%;
            height: calc(100% - 53px);
            overflow-x: hidden;
            overflow: auto;

            >li {
                margin-bottom: 4px;
                position: relative;
                width: 100%;
                height: 48px;
                line-height: 48px;
                border-radius: 3px;
                font-size: 14px;
                color: $textColor_2;
                border: 0.5px solid $n-borderColor;
                box-sizing: border-box;
                background-color: $foregroundColor_1;

                &:hover {
                    background-color: $foregroundColor_2;
                    transition: 0.2s;
                }

                >span {
                    display: block;
                    float: left;
                    height: 100%;

                    &:first-child {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 8%;
                        text-align: center;
                        overflow-y: hidden !important;

                        img {
                            margin-right: 1.125rem;
                            width: 24px;
                        }
                    }

                    &:nth-child(2) {
                        width: 13%;
                        text-align: left;
                    }

                    &:nth-child(3) {
                        padding-left: 1rem;
                        width: calc(36% - 10px);
                        @include whiteSpace;
                        text-align: left;
                    }

                    &:nth-child(4),
                    &:nth-child(5) {
                        width: 5%;
                        text-align: center;
                        color: $btn-blue;
                        cursor: pointer;

                        i {
                            font-size: 1.5rem;
                        }
                    }

                    &:nth-child(6) {
                        padding-left: 1rem;
                        width: 25%;
                        text-align: left;
                        @include whiteSpace;
                    }

                    &:last-child {
                        position: absolute;
                        right: 2%;
                        width: 6%;
                        height: 30px;
                        line-height: 30px;
                        top: 6px;
                        border-radius: 3px;
                        cursor: pointer;

                        &:hover {
                            color: white;
                            transition: 0.2s;
                        }

                        p {
                            margin-left: 10%;
                            width: 80%;
                            height: 100%;
                            border-radius: 3px;
                            text-align: center;
                            cursor: pointer;

                            &:hover {
                                color: white;
                                transition: 0.2s;
                                background-color: #3b4357;
                            }
                        }
                    }
                }
            }
        }
    }

    // 录像回放
    // 视频弹窗
    .video-main {
        .video-title {
            position: absolute;
            top: -2rem;
        }

        /deep/ .el-dialog__body {
            padding: 1rem !important;
            position: relative;
            margin-top: 1rem;
            height: 470px;
        }

        .VideoAssembly {
            position: relative;
            height: 100%;

            i {
                display: block;
                position: absolute;
                right: 0;
                top: -1rem;
            }
        }
    }

    // 确认层
    .confirmed {



        /deep/ .el-dialog {
            padding-bottom: 50px;
            border: 0.5px solid $n-borderColor;

            .el-dialog__close {
                color: $textColor_1;
            }

            .el-dialog__header {
                padding: 12px 0;

                .el-dialog__title {
                    font-size: 1rem;
                    font-weight: normal;
                }
            }

            .el-dialog__body {
                padding: 0;
                width: 100%;
                height: 100%;
                color: $textColor_1;


                .title {
                    margin-top: -8px;
                    padding-bottom: 20px;
                    font-size: 1.25rem;
                    text-align: center;
                    color: $textColor_1;
                    border-bottom: 1px solid $n-borderColor;
                }

                .tbc_main {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    padding: 30px 10px 10px 10px;

                    >div {
                        padding: 10px 16px;

                        >p {
                            margin: 0;
                            line-height: 30px;
                            color: $textColor_4;
                        }

                        >span {
                            color: $textColor_3;
                            border-bottom: 0.5px solid $textColor_5;
                        }

                        &:last-child {
                            border-bottom: none;
                        }
                    }

                    @mixin pColor {
                        p {
                            margin-bottom: 10px;
                            color: $textColor_2;
                        }
                    }

                    .incident {
                        @include pColor;

                        span {
                            padding: 10px;
                            display: block;
                            width: 100%;
                            max-height: 120px;
                            overflow-y: scroll;
                            border-radius: 3px;
                            color: $textColor_1;
                            border: 0.5px solid $n-borderColor;
                        }
                    }

                    .radios {
                        @include pColor;

                        /deep/ .el-radio {
                            border: 0.5px solid $n-borderColor;
                        }
                    }

                    .textarea {
                        @include pColor;

                        textarea {
                            color: $textColor_1;
                            border: 0.5px solid $n-borderColor;
                            background-color: #0c0e14 !important;
                        }
                    }

                    .time_box,
                    .qr_time {
                        @include pColor;

                        span {
                            color: $textColor_1;
                            font-weight: 500 !important;
                        }
                    }
                }

                .btn {
                    position: absolute;
                    width: 100%;
                    height: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border-top: 1px solid $n-borderColor;

                    span {
                        display: block;
                        width: 60px;
                        height: 32px;
                        text-align: center;
                        line-height: 32px;
                        border-radius: 3px;
                        border: 0.5px solid $n-borderColor;
                        cursor: pointer;
                        background-color: #3b4357;
                        margin-right: 12px;

                        &:last-child {
                            right: 102px;
                            background-color: #409eff;
                        }

                        &:hover {
                            color: white;
                            transition: 0.2s;
                        }
                    }
                }
            }
        }
    }

    // 分页
    .anologueEquipPaging {
        position: absolute;
        left: -16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid $n-borderColor;
        @include pagination;

        width: calc(100% + 32px);

    }

    @media screen and (max-width: 1290px) {
        .aside_top_nav>div>span {
            margin-left: 8px;
        }

        .demonstration {
            display: none;
            color: red;
        }
    }
}